home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / macros / Files / Copy_Path_to_Clipboard.bsh < prev    next >
Text File  |  2013-07-28  |  617b  |  28 lines

  1. /*
  2.  * Copy_Path_to_Clipboad.bsh - Copies the current buffer's 
  3.  * path to the clipboard.
  4.  *
  5.  * Copyright (C) 2002-2004 Ollie Rutherfurd <oliver@rutherfurd.net>
  6.  *
  7.  * $Id: Copy_Path_to_Clipboard.bsh 5016 2004-04-09 17:10:15Z spestov $
  8.  */
  9.  
  10. void copyBufferPathToClipboard(Buffer buffer)
  11. {
  12.     Registers.setRegister('$',buffer.getPath());
  13.     HistoryModel.getModel("clipboard").addItem(buffer.getPath());
  14. }
  15.  
  16. copyBufferPathToClipboard(buffer);
  17.  
  18. /*
  19.  
  20. <listitem>
  21.     <para><filename>Copy_Path_to_Clipboad.bsh</filename></para>
  22.     <abstract><para>Copies the current buffer's path
  23.         to the clipboard.
  24.     </para></abstract>
  25. </listitem>
  26.  
  27. */
  28.